<?php

Yii::import('zii.widgets.CPortlet');

class TagCloud extends CPortlet
{
	public $maxTags=20;

	protected function renderContent()
	{
            $tags=Tag::model()->findTagWeights($this->maxTags);
            
            $this->render('tagCloud', array('tags' => $tags));
	}
}